import request from "@/utils/request";
import type {IUserInfo} from '@/@types/authority'
export interface ILoginInfo{
  loginname:string,
  password:string
}
export const getLoginApi=(params:ILoginInfo)=>request.post<any, { token: string, userid: string }>('/user/login',params)
// 获取用户信息
export const getUserInfoApi=(userid:string)=>request.get<any, IUserInfo[]>('/user/info',{
  params:{
    userid
  }
})